<!DOCTYPE html>
<html>
<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>电商后台管理</title>
    <meta name="description" content="电商后台管理">
    <meta name="keywords" content="电商后台管理">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <style>
        .grid-content {
            border-radius: 4px;
            min-height: 40px;
        }
    </style>
</head>
<body class="hold-transition">
<div id="app">
    <div class="content-header">
        <h1>统计分析<small>运营数据</small></h1>
        <el-breadcrumb separator-class="el-icon-arrow-right" class="breadcrumb">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>统计分析</el-breadcrumb-item>
            <el-breadcrumb-item>运营数据</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
    <div class="app-container">
        <div class="box" style="height: 900px">
            <div class="excelTitle" >
                <el-button @click="exportExcel">导出Excel</el-button>运营数据统计
            </div>
            <div class="excelTime">日期：{{reportData.reportDate}}</div>
            <table class="exceTable" cellspacing="0" cellpadding="0">
                <tr>
                    <td colspan="4" class="headBody">会员数据统计</td>
                </tr>
                <tr>
                    <td width='40%' class="tabletrBg">今日新增会员数</td>
                    <td width='10%'>{{reportData.userReport.todayNewMember}}</td>
                    <td width='20%' class="tabletrBg">总会员数</td>
                    <td width='30%'>{{reportData.userReport.totalMember}}</td>
                </tr>
                <tr>
                    <td class="tabletrBg">本周新增会员数</td>
                    <td>{{reportData.userReport.thisWeekNewMember}}</td>
                    <td class="tabletrBg">本月新增会员数</td>
                    <td>{{reportData.userReport.thisMonthNewMember}}</td>
                </tr>
                <tr>
                    <td colspan="4" class="headBody">订单数据统计</td>
                </tr>
                <tr>
                    <td class="tabletrBg">今日订单数</td>
                    <td>{{reportData.orderReport.todayNewOrder}}</td>
                    <td class="tabletrBg">本周订单数</td>
                    <td>{{reportData.orderReport.thisWeekNewOrder}}</td>
                </tr>
                <tr>
                    <td colspan="4" class="headBody">热门商品</td>
                </tr>
                <tr class="tabletrBg textCenter">
                    <td>商品名称</td>
                    <td>购买数量</td>
                    <td>占比</td>
                    <td>备注</td>
                </tr>
                <tr v-for="s in reportData.hotProduct">
                    <td style="width:100px">{{s.title}}</td>
                    <td align="center">{{s.totalNum}}</td>
                    <td align="center">{{s.present}}%</td>
                    <td>{{s.sellPoint}}</td>
                    <td></td>
                </tr>
            </table>
        </div>
    </div>
</body>
<!-- 引入组件库 -->
<script src="../js/vue.js"></script>
<script src="../plugins/elementui/index.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/axios-0.18.0.js"></script>
<script src="../js/request.js"></script>
<script src="../js/auth.js" type="module"></script>

<script src="../js/report-business.js" type="module"></script>"
</html>
